65 const Eigen::VectorXd& _data,
66 const Eigen::MatrixXd& _data_cov,
67 const Eigen::VectorXd& _delta,
68 const Eigen::MatrixXd& _delta_cov,
69 const Eigen::VectorXd& _delta_int,
70 const Eigen::MatrixXd& _delta_integr_cov,
71 const Eigen::MatrixXd& _jac_delta,
72 const Eigen::MatrixXd& _jac_delta_int,
73 const Eigen::MatrixXd& _jacobian_calib);
134 void print(
bool show_data = 0,
136 bool show_delta_int = 0,
Buffer of motions (pre-integrated deltas) of a CaptureMotion.
Definition: motion_buffer.h:108
void split(const TimeStamp &_ts, MotionBuffer &_oldest_buffer)
Splits the buffer at _ts: the motions up to _ts are moved to _oldest_buffer.
Definition: motion_buffer.cpp:131
void print(bool show_data=0, bool show_delta=0, bool show_delta_int=0, bool show_jacs=0, bool show_covs=0)
Prints the buffer, optionally showing data, deltas, integrated deltas, Jacobians and covariances.
Definition: motion_buffer.cpp:151
const Motion & getClosestMotion(const TimeStamp &_ts) const
Returns the motion with the closest time stamp to _ts (the previous one in case of draw)
Definition: motion_buffer.cpp:109
MotionBuffer()
Default constructor.
Definition: motion_buffer.cpp:80
const Motion & getMotion(const TimeStamp &_ts) const
Returns the motion at _ts, following the rules of the class description.
Definition: motion_buffer.cpp:85
TimeStamp implements basic functionalities for time stamps.
Definition: time_stamp.h:39
Definition: capture_base.h:23
EIGEN_DEFAULT_DENSE_INDEX_TYPE SizeEigen
Vector and Matrices size type for the Wolf project.
Definition: wolf.h:58
Motion of the buffer at a time stamp: the data, the delta and the integrated delta,...
Definition: motion_buffer.h:33
Motion()=delete
Default constructor (deleted)
SizeEigen cov_size_
Size of the delta covariance.
Definition: motion_buffer.h:37
SizeEigen data_size_
Size of the data vector.
Definition: motion_buffer.h:35
Eigen::VectorXd delta_integr_
The integrated motion or delta-integral.
Definition: motion_buffer.h:44
Eigen::MatrixXd data_cov_
Covariance of the instantaneous data.
Definition: motion_buffer.h:41
Motion(const TimeStamp &_ts, const Eigen::VectorXd &_data, const Eigen::MatrixXd &_data_cov, const Eigen::VectorXd &_delta, const Eigen::MatrixXd &_delta_cov, const Eigen::VectorXd &_delta_int, const Eigen::MatrixXd &_delta_integr_cov, const Eigen::MatrixXd &_jac_delta, const Eigen::MatrixXd &_jac_delta_int, const Eigen::MatrixXd &_jacobian_calib)
Constructor from all the values.
Eigen::MatrixXd jacobian_delta_
Jacobian of the integration wrt delta_.
Definition: motion_buffer.h:46
~Motion()
Destructor.
Definition: motion_buffer.cpp:63
TimeStamp ts_
Time stamp.
Definition: motion_buffer.h:39
Eigen::MatrixXd jacobian_calib_
Jacobian of delta_integr wrt extra states (TBD by the derived processors)
Definition: motion_buffer.h:48
SizeEigen calib_size_
Size of the calibration vector.
Definition: motion_buffer.h:38
Eigen::VectorXd data_
Instantaneous motion data.
Definition: motion_buffer.h:40
Eigen::MatrixXd delta_integr_cov_
Covariance of the integrated delta.
Definition: motion_buffer.h:45
Eigen::VectorXd delta_
Instantaneous motion delta.
Definition: motion_buffer.h:42
SizeEigen delta_size_
Size of the delta vector.
Definition: motion_buffer.h:36
Eigen::MatrixXd delta_cov_
Covariance of the instantaneous delta.
Definition: motion_buffer.h:43
Eigen::MatrixXd jacobian_delta_integr_
Jacobian of the integration wrt delta_integr_.
Definition: motion_buffer.h:47